package o;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import java.util.ArrayList;
import java.util.List;

public class eok {
    private static final eok ˎ = new eok();
    private String ˊ;
    private String ˋ;
    private final List<a> ˏ = new ArrayList();
    private final Object ॱ = new Object();

    static class a {
        int ˋ;
        int ˏ;

        a(int i, int i2) {
            this.ˋ = i;
            this.ˏ = i2;
        }

        public String ˏ() {
            return String.valueOf(this.ˋ) + String.valueOf(this.ˏ);
        }
    }

    @NonNull
    public static eok ˎ() {
        return ˎ;
    }

    public void ॱ(int i, int i2, @Nullable String str) {
        synchronized (this.ॱ) {
            a aVar = new a(i, i2);
            this.ˏ.add(aVar);
            this.ˊ = aVar.ˏ();
            this.ˋ = str;
        }
    }

    @NonNull
    public String ˏ() {
        String str;
        synchronized (this.ॱ) {
            str = this.ˊ == null ? "" : this.ˊ;
        }
        return str;
    }

    @NonNull
    public String ˋ() {
        String stringBuilder;
        synchronized (this.ॱ) {
            StringBuilder stringBuilder2 = new StringBuilder();
            int size = this.ˏ.size();
            for (int i = 0; i < size; i++) {
                stringBuilder2.append(((a) this.ˏ.get(i)).ˏ()).append(';');
            }
            this.ˏ.clear();
            stringBuilder2.append(this.ˋ == null ? "" : this.ˋ);
            stringBuilder = stringBuilder2.toString();
        }
        return stringBuilder;
    }
}
